import request from '@/utils/request'

// 查询抢单池列表
export function listSeize(query) {
  return request({
    url: '/seize/seize/list',
    method: 'get',
    params: query
  })
}

// 查询抢单池详细
export function getSeize(id) {
  return request({
    url: '/seize/seize/' + id,
    method: 'get'
  })
}

// 新增抢单池
export function addSeize(data) {
  return request({
    url: '/seize/seize',
    method: 'post',
    data: data
  })
}

// 修改抢单池
export function updateSeize(data) {
  return request({
    url: '/seize/seize',
    method: 'put',
    data: data
  })
}

// 删除抢单池
export function delSeize(id) {
  return request({
    url: '/seize/seize/' + id,
    method: 'delete'
  })
}
